package com.test.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by Samuel on 16/6/29.
 */

@Controller
@RequestMapping("test")
public class testClass {

    @RequestMapping("ttt.shtml")
    public void test(HttpServletRequest request, HttpServletResponse response){
        System.out.println("sssssssss");
        try {
            response.getWriter().print("asdfasdfasdfasdf");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
